//
//  LOLTabBarController.m
//  LOLProject
//
//  Created by lanou3g on 15/5/26.
//  Copyright (c) 2015年 lanou3g.com蓝欧科技. All rights reserved.
//

#import "LOLTabBarController.h"

@interface LOLTabBarController ()

@end

@implementation LOLTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
//    设置标签视图控制器的视图背景颜色
    self.view.backgroundColor=[UIColor greenColor];
//    设置首页视图控制器
    HomePageViewController * homePageVC=[[HomePageViewController alloc] initWithNibName:@"HomePageViewController" bundle:[NSBundle mainBundle]];
    homePageVC.tabBarItem=[[UITabBarItem alloc] initWithTitle:@"首页" image:[UIImage imageNamed:@"iconfont_shouye.png"] tag:101];
//    设置解说视图控制器
    CommentaryViewController * commentaryVC=[[CommentaryViewController alloc] initWithNibName:@"CommentaryViewController" bundle:[NSBundle mainBundle]];
    commentaryVC.tabBarItem=[[UITabBarItem alloc] initWithTitle:@"解说" image:[UIImage imageNamed:@"iconfont_jieshuo.png"] tag:102];
//    设置下载视图控制器
    HeroInformationViewController * heroInformationVC=[[HeroInformationViewController alloc] initWithNibName:@"HeroInformationViewController" bundle:[NSBundle mainBundle]];
    heroInformationVC.tabBarItem=[[UITabBarItem alloc] initWithTitle:@"英雄信息" image:[UIImage imageNamed:@"iconfont_heroInformation.png"] tag:103];
//    设置要管理的视图控制器
    self.viewControllers=@[homePageVC,commentaryVC,heroInformationVC];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
